/*
 * FairyCombineResource.h
 *
 *  Created on: 2014. 4. 29.
 *      Author: mega
 */

#ifndef FAIRYCOMBINERESOURCE_H_
#define FAIRYCOMBINERESOURCE_H_

namespace ProjectZ { namespace NResource {

class FairyCombineResource
{
public:
	struct Flyweight
	{
		int _TYPE;
		int _ADD_PER;
		int _DEFAULT_RATE;
		int _EVENT_RATE;
	};

public:
	FairyCombineResource();
	virtual ~FairyCombineResource();

	bool	LoadResource();
	int		GetSuccessType(int & exp);

private:
	void	Clear();

public:
	typedef std::map<int, Flyweight *>		FAIRYCOMBINETREE;

private:
	FAIRYCOMBINETREE	clsFlyTree;
};

} /* namespace NResource */ } /* namespace ProjectZ */

#endif /* FAIRYCOMBINERESOURCE_H_ */
